package org.luxor.common.netty.jdk.aio.server;

/**
 * Java原生：异步非阻塞I/O案例 服务端
 *
 * @author Mr.yan @date 2023/8/29
 */
public class TimeServer {
    public static void main(String[] args) {
        int port = 8080;
        if (args != null && args.length > 0) {
            port = Integer.valueOf(args[0]);
        }
        AsyncTimeServerHandler timeServer = new AsyncTimeServerHandler(port);
        new Thread(timeServer, "AIO-TimeServer-001").start();
    }
}
